import dayjs from 'dayjs';
import utc from 'dayjs/plugin/utc';

dayjs.extend(utc);

export function dateFormat(time: string, format = 'YYYY-MM-DD HH-mm-ss') {
  return dayjs.utc(time).format(format);
}
